package com.answer.controller;


import com.answer.model.dto.app.AppReviewDTO;
import com.answer.model.reslut.Result;
import com.answer.service.AppService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * app应用审核
 */
@RestController
@RequestMapping("/review")
public class AppReviewController {

    @Resource
    private AppService appService;

    @PostMapping
    public Result ReviewApp(@RequestBody AppReviewDTO appReviewDTO) {
        Boolean res = appService.reviewApp(appReviewDTO);
        return res?Result.success("操作成功"):Result.faile("操作失败");
    }


}
